package com.alm.web.controller.alm.event;

import com.alm.common.core.controller.BaseController;
import com.alm.common.core.page.TableDataInfo;
import com.alm.handle.core.domain.entity.SysAlmEventsLog;
import com.alm.handle.core.domain.entity.SysDevHistoryInfo;
import com.alm.handle.service.ISysDevHistoryInfoService;
import com.alm.handle.service.SysAlmEventsLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@RestController
@RequestMapping("/alm/dev/enents")
@Valid
public class AlmEventsLogController extends BaseController {

    @Autowired
    private SysAlmEventsLogService eventsLogService;

    @GetMapping("/list")
    public TableDataInfo list(String  mac) {
        startPage();
        List<SysAlmEventsLog> list = eventsLogService.queryByMac(mac);
        return getDataTable(list);
    }




}
